package day11;

public class TestInterface {
	public static void main(String[] args) {
		IC ic = Anon.getIC();//IC ic = new ICImpl();
		ic.show();
	}
}
interface IC{
	void show();
}
class Anon{
	public static IC getIC(){
/*		class ICImpl implements IC{
			public void show(){
				System.out.println("show");
			}
		}
		ICImpl i = new ICImpl();
		return i;*/
		IC i = new IC(){
			public void show(){
				System.out.println("show");
			}
		};
		return i;
	}
}

